package domain;

import java.io.Serializable;
import java.sql.Timestamp;

public class Log implements Serializable {
    private Timestamp time;
    private String action;
    private String userid;

    public Log(){
    }

    public Log(String userid, String action) {
        this.userid = userid;
        this.action = action;
        time = new Timestamp(System.currentTimeMillis());
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }
}
